package com.mingqijia.gassafety.webserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gap.basic.exception.BizException;
import com.mingqijia.gassafety.db.entity.AicallTask;
import com.mingqijia.gassafety.webserver.dto.CallTaskDTO;
import com.mingqijia.gassafety.webserver.request.BusinessNoticeRequest;

/**
 * @Author: duanhongxiang
 * @Date: 2024/1/22 18:51
 */
public interface AicallTaskService extends IService<AicallTask> {
    /**
     * 处理外呼任务池
     * @param req
     * @param spId
     * @throws BizException
     */
    void handleAicallTask(BusinessNoticeRequest req,String spId) throws BizException;

    /**
     * 修改任务状态
     * @param paramCode
     * @param spId
     */
    void updateAicallTask(String paramCode, String spId);
    
    /**
     * 根据paramCode获取任务池信息
     * @param paramCode
     * @param spId
     * @return
     */
    AicallTask getByParamCode(String paramCode,String spId);

    /**
     * 获取外呼任务信息
     * @param paramCode
     * @param spId
     * @return
     */
    CallTaskDTO getAicallTaskByParamCode(String paramCode, String spId);

    /**
     * 获取外呼任务信息
     * @param type
     * @param spId
     * @return
     */
    CallTaskDTO getAicallTaskByType(Integer type, String spId);
}
